<template>
  <view class="address-container">
    <view class="address-icon">
      <image class="img" src="https://www.worldintek.com:39011/yaolexue-service/icon_address.png" mode="aspectFit"></image>
    </view>
    <view class="address-info">
      <view class="address">
        {{addressInfo.detailAddress}}
      </view>
      <view class="info">
        <view class="name">
          {{addressInfo.name}}
        </view>
        <view class="mobile">
         {{addressInfo.phoneNumber}}
        </view>
      </view>
    </view>
  </view>
  
 
</template>

<script>
  export default {
    name:"com-address",
    data() {
      return {
        
      };
    },
    onLoad() {
     
    },
    props: {
      addressInfo: {
        type: Object,
        default: {}
      }
    },
    methods: {
     
      
    }
  }
</script>

<style lang="scss" scoped>
.address-container {
  width: 689rpx;
  height: auto;
  background: #FFFFFF;
  border-radius: 10rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20rpx 0;
  // margin-top: 21rpx;

  .address-icon {
    margin-right: 19rpx;
    .img {
      width: 44rpx;
      height: 44rpx;
    }
  }
  .address-info {
    display: flex;
    flex-direction: column;
    margin-right: auto;
    
    .address {
      width: fit-content;
      font-size: 30rpx;
      font-family: Source Han Sans CN;
      font-weight: 400;
      color: #333333;
      margin-top: 37rpx;
    }
    .info {
      display: flex;
      margin-top: 23rpx;
      margin-bottom: 38rpx;
      width: 100%;
      
      .name {
        width: fit-content;
        height: 30rpx;
        font-size: 26rpx;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #666666;
      }
      .mobile {
        width: 156rpx;
        // height: 19rpx;
        font-size: 26rpx;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #666666;
        margin-left: 20rpx;
      }
    }
    
    
  }
}
</style>